package com.jrx.anytxn.transaction.job.chargeoffProcess.step;

import com.jrx.anytxn.transaction.bean.ChargeoffBean;
import com.jrx.anytxn.transaction.entity.TlChargeoffInfo;
import com.jrx.anytxn.transaction.service.IChargeoffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.batch.item.ItemProcessor;

/**
 * 核销处理processor
 */
@Service
public class ChargeoffProcessor implements ItemProcessor<TlChargeoffInfo,ChargeoffBean> {

    @Autowired
    private IChargeoffService chargeoffService;

    @Override
    public ChargeoffBean process(TlChargeoffInfo tlChargeoffInfo) throws Exception {
        return chargeoffService.processChargeoff(tlChargeoffInfo);
    }
}
